#include "EnergyConvectionasDiffusionADKernel.h"

registerMooseObject("TrilobitaApp", EnergyConvectionasDiffusionADKernel);

InputParameters
EnergyConvectionasDiffusionADKernel::validParams()
{
    auto params = ADKernelGrad::validParams();
    return params;
}

EnergyConvectionasDiffusionADKernel::EnergyConvectionasDiffusionADKernel(const InputParameters& parameters)
    : ADKernelGrad(parameters),
    _energy_convection_as_diffusion_strong_residual(getADMaterialProperty<RealVectorValue>("energy_convection_as_diffusion_strong_residual"))
{}

ADRealVectorValue
EnergyConvectionasDiffusionADKernel::precomputeQpResidual()
{
    return _energy_convection_as_diffusion_strong_residual[_qp];
}
